﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace View
{
    public partial class Statics : Form
    {
        private Menu menu;

        public Statics(Menu menu)
        {
            this.menu = menu;
            InitializeComponent();
        }

        private void button5_Click(object sender, EventArgs e)
        {
            menu.Show();
            this.Dispose();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            DataTable dt = Controller.Statics.getVIPCustomers();
            //Show the Data on the DataGridView:
            dataGridView1.DataSource = dt;
        }

        private void button3_Click(object sender, EventArgs e)
        {
            DataTable dt = Controller.Statics.getLackIngridients();
            //Show the Data on the DataGridView:
            dataGridView1.DataSource = dt;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DataTable dt=Controller.Statics.getRevenue();
            //Show the Data on the DataGridView:
            dataGridView1.DataSource = dt;
        }

    }
}
